package com.zengqingfa.springboot.mybatis.demo.mapper;

import com.zengqingfa.springboot.mybatis.demo.entity.User;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import java.util.List;

public interface UserMapper {

    void insert(User user);

    List<User> getList();

    @Select("select * from user where id=#{id}")
    User getById(@Param("id") String id);
}
